<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <title>编辑</title>


    <link rel="stylesheet" type="text/css" href="../../css/base/general.css">
    <link rel="stylesheet" type="text/css" href="../../css/base/header.css">
    <link rel="stylesheet" type="text/css" href="../../css/base/footer.css">
    <link rel="stylesheet" type="text/css" href="../../css/post.css">


    <script type="text/javascript" charset="utf-8" src="../../js/base/jquery.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../js/base/base.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../js/publish/publish.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../js/publish/update.js"></script>


    <!--又拍云-->
    <script type="text/javascript" charset="utf-8" src="../../js/upyun/async.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../js/upyun/spark-md5.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../js/upyun/upyun-mu.js"></script>
    <!--弹出框-->
    <script type="text/javascript" charset="utf-8" src="../../js/base/layer.js"></script>


    <link href="../../image/base/favicon.ico" mce_href="../../image/base/favicon.ico" type="image/x-icon"
          rel="bookmark"/>
    <link href="../../image/base/favicon.ico" mce_href="../../image/base/favicon.ico" type="image/x-icon" rel="icon"/>
    <link href="../../image/base/favicon.ico" mce_href="../../image/base/favicon.ico" type="image/x-icon"
          rel="shortcut icon"/>

</head>
<body>
<div class="loading">
    <img src="../../image/base/loading.gif">
</div>


<div id="header">
    <div class="header-row-1">
        <div class="header-container">
            <div class="header-row-1-col-1">
                <a href="../app.html" target="_blank" class="help">
                    <i></i>
                    APP下载
                </a>
            </div>
            <ul class="header-row-1-col-2">
                <li class="nav-topic">
                    <a href="../../index.html" style="border-left: none;">选题</a>
                    <div class="header-topic-label">
                        <ul class="header-topic-label-list"></ul>
                    </div>
                </li>
                <li class="nav-interest">
                    <a href="../discover.html" target="_blank">发现</a>
                </li>
                <li class="nav-follow"><a href="../attention.html" target="_blank">关注的人</a></li>
                <li class="nav-ranklist"><a href="../rank.html" target="_blank">排行榜</a></li>
            </ul>
            <div class="header-row-1-col-4"></div>
            <div class="header-row-1-col-3">
                <div class="search-box">
                    <a href="javascript:;" class="search-btn"></a>
                    <input type="hidden" id="keyword002" value="请输入您所需要搜索的内容"/>
                    <input type="text" id="keyword001" placeholder="请输入您所需要搜索的内容" autocomplete="off"/>
                    <div class="search-record">
                        <span><em></em><i></i></span>
                        <div class="search-record-box">
                            <ul>

                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="header-row-2">
        <div class="header-container">
            <a class="logo" href="../../index.html"></a>
            <ul class="navigator">
                <li class="homepage"><a href="../../index.html">选题</a></li>
                <li class="interestpage"><a href="../discover.html" target="_blank">发现</a></li>
                <li class="followpage"><a href="../attention.html" target="_blank">关注的人</a></li>
                <li class="rankpage"><a href="../rank.html" target="_blank">排行榜</a></li>
                <li class="centerpage"><a href="../center/home.html" target="_blank">个人中心</a></li>
            </ul>
            <div class="side-bar">
                <a href="javascript:;" class="go-top go-top-hidden">
                    <em>返回顶部</em>
                    <i></i>
                </a>
            </div>
        </div>
    </div>
</div>


<!-- 拖拽排序层 -->
<div class="sort-layer" style="height: 910px;">
    <h3>
        <ul class="btn-list">
            <li><a href="javascript:;" class="sort-layer-cancel">取消</a></li>
            <li><a href="javascript:;" class="sort-layer-save save-sort">保存</a></li>
        </ul>
        拖拽即可调整文字、照片、视频顺序
        <span></span>
    </h3>
    <div class="sort-layer-box ui-selectable" style="height: 740px; overflow: auto;">
        <div class="txt-show">
            <span>
                <em></em>
                <i></i>
            </span>
            <p></p>
        </div>
        <ol class="sort-layer-list ui-sortable"></ol>
    </div>
    <div style="clear: both"></div>
    <a href="javascript:;" id="save-sort" class="save-sort">保存</a>
</div>
<!-- 上传进度层 -->
<div class="upload-layer">
    <div class="upload-layer-box">
        <span class="percentage"><em>0</em>%</span>
        <span class="text">正在处理图片，请您稍等...</span>
        <span class="files-count">(<em>0</em>/<i>0</i>)</span>
        <div class="progressing-bar">
            <div class="progressing"></div>
        </div>
        <a href="javascript:;" class="cancel">取消</a>
    </div>
</div>


<div id="container" class="pubThreadContainer">
    <div class="crumbs">
        <div class="crumbs-box">
            <em>当前位置：</em>
            <a href="../../index.html">首页</a>
            >
            <a href="update.html" style="color: black;">编辑</a>
        </div>
    </div>


    <!-- 提示信息层 -->
    <div class="left">
        <div class="title-box">
            <input type="text" class="thread-title" placeholder="在这里输入标题，标题长度为6-30个文字">
            <div class="thread-resource-interest">
                <a href="javascript:;" class="resource-btn by_myself" data-type="0">原创</a>
                <a href="javascript:;" class="resource-btn by_other" data-type="1">转载</a>
                <div class="char-limit"><em>请输入帖子标题</em> <i></i> <b></b></div>
                <a href="javascript:;" class="add-interest-btn">
                    <span>
                        <i></i>
                        <i></i>
                        <i></i>
                    </span>
                    添加发现的类别
                </a>
                <ul class="interest-label-list"></ul>
                <ul class="interest-list"></ul>
                <div class="interest-list-layer"></div>
            </div>
        </div>
		<span class="add-model">
			<div class="add-model-box">
                <div class="intro">
                    <h5>点击右侧按钮，添加相对应的元素模块</h5>
                    <h6>还不太会用？看看<a href="publish-course.html" target="_blank">发帖教程</a></h6>
                </div>
                <div class="btn-box">
                    <a href="javascript:;" class="add-txt-btn" id="add-txt"><i></i>添加文字</a>
                    <a href="javascript:;" class="add-img-btn" id="add-img"><i></i>添加图片</a>
                    <a href="javascript:;" class="add-video-btn" id="add-video"><i></i>添加视频</a>
                </div>
            </div>
		</span>
        <!--图片-->
        <div class="add-img-box">
            <div class="close-area">
                <a href="javascript:;" class="close"
                   onclick="$(this).parents('.add-img-box').slideUp(200);"><i></i>收起</a></div>
            <div class="QRcode" id="QRcode_0">
                <img src="../../image/base/none_img.png" style="width: 170px;height: 150px;" id="QRcode_kids_0">
            </div>
            <div class="upload">
                <a href="javascript:;" class="pickfiles-img" id="pickfiles-img-left">本地图片</a>
                <a href="javascript:;" class="pickfiles-img" id="pickfiles-img-right">确定上传</a>
                <input type="file" name="file" id="file_0" onchange="setImagePreview(this,0);">
                <!--<span>上传图片最多为1000张，单张容量小于20M</span>-->
                <a href="javascript:;" class="upload-warning">若将图片设为封面图,则该图片将不再出现于内容中</a>
                <a href="javascript:;" class="upload-warning img-warning-btn">上传注意事项</a>
                <div class="warning-area img-warning">
                    <div class="arrow"><em></em><i></i></div>
                    <div class="box" style="height: 45px;">
                        <p>图片支持：jpg,gif,png,jpeg格式</p>
                    </div>
                </div>
            </div>
        </div>
        <!--视频-->
        <div class="add-video-box">
            <div class="close-area">
                <a href="javascript:;" class="close" onclick="$(this).parents('.add-video-box').slideUp(200);"><i></i>收起</a>
            </div>
            <div class="QRcode" id="QRcode_1">
                <img src="../../image/base/none_video.png" style="width: 170px;height: 150px;" id="QRcode_kids_1">
            </div>
            <div class="upload">
                <!--<a href="javascript:;" id="pickfiles-video">上传本地视频</a>-->
                <a href="javascript:;" class="pickfiles-video" id="pickfiles-video-left">本地视频</a>
                <a href="javascript:;" class="pickfiles-video" id="pickfiles-video-right">确定上传</a>
                <input type="file" name="file" id="file_1" onchange="setImagePreview(this,1);">
                <!--<span>上传视频最多为10个，单个视频小于2G</span>-->
                <a href="javascript:;" class="upload-warning video-warning-btn">上传注意事项</a>
                <div class="warning-area video-warning">
                    <div class="arrow"><em></em><i></i></div>
                    <div class="box">
                        <p>视频支持：flv,mp4,mov,mpg,avi,vob,wmv,asf,f4v,mkv,3gp格式</p>
                    </div>
                </div>
            </div>
        </div>


        <!--插入的内容-->
        <ol class="thread-content-list ui-sortable"></ol>


        <div style="clear: both"></div>
    </div>

    <div class="right">
        <div class="right-area">
            <div class="pub-box">
                <a href="javascript:void(0);" id="save-update-btn">保存</a>
                <a href="javascript:void(0);" id="pub-update-btn">发布</a>
                <a href="javascript:void(0);" id="pub-before-btn">发帖前必看</a>
            </div>
            <div class="thumbnail" style="display: block;">
                <div class="txt-show">
                    <span>
                        <em></em>
                        <i></i>
                    </span>
                    <p></p>
                </div>
                <h3>
                    调整顺序
                    <span>可以让您更快速的给文字、图片、视频进行排序</span>
                </h3>
                <div class="slimScrollDiv">
                    <div class="thumbnail-box" style="overflow-y: scroll">
                        <ol></ol>
                    </div>
                    <div class="slimScrollBar"></div>
                    <div class="slimScrollRail"></div>
                </div>
                <a href="javascript:;" id="open-sortable-layer-btn">点此调整模块顺序</a>
            </div>
        </div>
        <div style="clear: both"></div>
    </div>

    <div style="clear: both"></div>
</div>

<div id="footer">
    <div class="container">
        <div class="left-footer">
            <ul class="about">
                <li><a href="http://www.mtzl.tv/official" target="_blank">关于我们</a></li>
                <span class="line"></span>
                <li><a href="../foot/notice.html" target="_blank">帮助中心</a></li>
                <span class="line"></span>
                <li><a href="../foot/agreement.html" target="_blank">用户协议</a></li>
            </ul>
            <div class="spark-logo"></div>
            <div class="clear"></div>
            <div class="copyright">
                <span>&copy;2015-2016</span>
                <span>Motortravel</span>
                <span>All Rights Reserved</span>
                <span>浙ICP备16035685号</span>
            </div>
        </div>
        <div class="right-footer">
            <div class="weibo-list">
                <a href="http://weibo.com/mtotortraveel" target="_blank" class="weibo-list-a"></a>
            </div>
            <span class="qrcode qrcode-hide"></span>
            <a href="#" target="_blank" class="shop-qrcode"></a>
            <div class="footer-weibo-btn">
                <i></i>
            </div>
            <div class="footer-weixin-btn">
                <i></i>
            </div>
            <a href="#" target="_blank" class="footer-taobao-btn">
                <i></i>
            </a>
        </div>
    </div>
</div>


</body>

<script>
    var update_id="";
    var update_status="";
    window.onload=function(){
        update_id = location.search; //获取url中"?"符后的字串
        if (update_id != '') {
            var _content_image_description = update_id.split("&");//把url(包括宽+比例)和描述分隔开
            update_id = _content_image_description[0].substring(12, _content_image_description[0].length);
            update_status = _content_image_description[1].substring(7, _content_image_description[1].length);
        }
        $('.loading').hide();
        $(".side-pub-thread").remove();
        interest_list();
        edit_article();

        //发帖标题字数控制
        $(".thread-title").keyup(function (thisLength, thisValue) {
            thisDom = $(this);
            threadTitleInput();
        });
        $("body").on('paste cut', '.thread-title', function (thisLength, thisValue) {
            thisDom = $(this);
            threadTitleInput();
            setTimeout(function () {
                thisDom.blur();
            }, 50);
            setTimeout(function () {
                thisDom.focus();
            }, 100);
        });
        $(".thread-title").blur(function (thisLength, thisValue) {
            thisDom = $(this);
            threadTitleInput();
        });
    }
</script>
</html>